$OpenBSD: patch-external_libebook_ExternalProject_libebook_mk,v 1.1 2015/05/26 08:44:58 robert Exp $
--- external/libebook/ExternalProject_libebook.mk.orig.port	Mon May 25 15:27:20 2015
+++ external/libebook/ExternalProject_libebook.mk	Mon May 25 15:27:29 2015
@@ -27,7 +27,7 @@ $(eval $(call gb_ExternalProject_use_externals,libeboo
 $(call gb_ExternalProject_get_state_target,libebook,build) :
 	$(call gb_ExternalProject_run,build,\
 		export PKG_CONFIG="" \
-		&& MAKE=$(MAKE) ./configure \
+		&& MAKE=$(MAKE) CPPFLAGS="-fPIC -DPIC" ./configure \
 			--with-pic \
 			--enable-static \
 			--disable-shared \
